package com.sinosoft.ebusiness.domain.elementManage;
// 采用工具 Hibernate Tools 3.2.4.GA (sinosoft version) 生成，请勿手工修改。

import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 * POJO类GeTemplateGroupId
 */
@Embeddable
public class GeTemplateGroupId implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 9027481055002431773L;

	/** 属性groupcode */
	private String groupcode;

	/** 属性templatecode */
	private String templatecode;

	/**
	 * 类GeTemplateGroupId的默认构造方法
	 */
	public GeTemplateGroupId() {
	}

	/**
	 * 属性groupcode的getter方法
	 */

	@Column(name = "GROUPCODE")
	public String getGroupcode() {
		return this.groupcode;
	}

	/**
	 * 属性groupcode的setter方法
	 */
	public void setGroupcode(String groupcode) {
		this.groupcode = groupcode;
	}

	/**
	 * 属性templatecode的getter方法
	 */

	@Column(name = "TEMPLATECODE")
	public String getTemplatecode() {
		return this.templatecode;
	}

	/**
	 * 属性templatecode的setter方法
	 */
	public void setTemplatecode(String templatecode) {
		this.templatecode = templatecode;
	}

	public boolean equals(Object other) {
		if ((this == other)) {
			return true;
		}
		if ((other == null)) {
			return false;
		}
		if (!(other instanceof GeTemplateGroupId)) {
			return false;
		}
		GeTemplateGroupId castOther = (GeTemplateGroupId) other;

		return ((this.getGroupcode() == castOther.getGroupcode()) || (this
				.getGroupcode() != null && castOther.getGroupcode() != null && this
				.getGroupcode().equals(castOther.getGroupcode())))
				&& ((this.getTemplatecode() == castOther.getTemplatecode()) || (this
						.getTemplatecode() != null
						&& castOther.getTemplatecode() != null && this
						.getTemplatecode().equals(castOther.getTemplatecode())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getGroupcode() == null ? 0 : this.getGroupcode().hashCode());
		result = 37
				* result
				+ (getTemplatecode() == null ? 0 : this.getTemplatecode()
						.hashCode());
		return result;
	}

}
